<!--
	作者：2575202388@qq.com
	时间：2018-10-14
	描述：教师管理
-->

<template>
	<div style="width:100%;">
		<div style="height: 45px;background: #fff;">
			<div style="width:100%;float:left;padding-top: 10px;padding-bottom: 10px;">
				<div style="width:10%;text-align: right;float:left;line-height:32px;">教师姓名：</div>
				<div style="width:15%;float:left;">
					<Input v-model="tj.tname"  clearable  style="width: 90%;float:left;" />
				</div>
				<div style="width:15%;text-align: left;float:left;">
					<Button v-on:click="search()" style="margin-left:1%;background: #ffa500;color:#fff;border:1px solid #ffa500;">搜索</Button>
	            	<Button v-on:click="addTeacher()" icon="md-add" type="primary" style="background-color: #3fc1c9;border:1px solid #3fc1c9;">新增教师</Button>
				</div>
			</div>
		</div>
		<div>
			<ss :tj="tj" ref="teacherss" ></ss>
		</div>
		<add ref="addteacher" v-on:reload="search()"></add>
	</div>
</template>

<script>
	import ss from "./ss";
	import add from "./add";
	export default {
		name: "manage",
		data() {
			return {
				tj: {
					tname:''
				},
				selections:[]//被选中的项
			}
		},
		methods: {
			search(){
				this.$refs.teacherss.load();
			},
	        resettj(){
				this.tj.tname='';
	        },
	        addTeacher(){
	        	this.$refs.addteacher.openmodal();
	        }
	        
		},
		components: {
			ss,
			add
		},
		mounted(){
		},
		watch:{
		},
		computed: {
		}
	}
</script>

<style>
</style>